package com.lxb.myblog.dao;

import com.lxb.myblog.po.Blog;
import com.lxb.myblog.queryvo.BlogQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BlogDao {
    List<BlogQuery> getAllBlogQuery();

    int saveBlog(Blog blog);

    Blog getBlog(Integer id);

    int updateBlog(Blog blog);

    void deleteBlog(Integer id);

    void saveBlogAndTag(Integer blogId, Integer tagId);
}
